package com.danhuang.cloud.danhuangdaily.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.danhuang.cloud.danhuangcore.entity.AlbumDTO;
import com.danhuang.cloud.danhuangcore.model.DhRes;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * @author huangwubin
 */
public interface PhotoService {

    DhRes albumList(HttpServletRequest request);

    DhRes albumDetail(HttpServletRequest request, Page page, String albumId);

    DhRes albumCreate(AlbumDTO albumDTO);

    DhRes photoUpload(String albumId, String path, MultipartFile file, String cover);

    DhRes test(String albumId, String path);

    byte[]  photoDown(String path);

    DhRes photoBig(String photoId);
}
